﻿/*公用样式*/
.wrapper {
    background-color: #fbf5d1;
    width: 100%;
    min-height: 100vh;
    height: auto;
}

.text_normal {
    font-size: 12px;
}

.f-14 {
    font-size: 14px;
}

.text_area_title {
    font-size: 14px;
    color: #a7a7a7;
}

#nav_main {
    position: fixed;
    left: 0px;
    bottom: 0px;
    z-index: 1;
    background: url('../images/nav_main_bg_60.png') center center;
    width: 100%;
    height: 60px;
}

.nav_item {
    height: 60px;
    width: 75px;
    display: block;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}

.middle_nav_item {
    width: calc(100% - 300px);
}

.center {
    text-align: center;
}

.middle {
    margin: 0 auto;
}

.left {
    float: left;
}

.right {
    float: right;
}

.main {
    width: 100%;
    height: auto;
}

/*index样式*/
#main_photoindex {
    background: url('../images/bg_photoindex.jpg') center center no-repeat;
    background-size: cover;
    min-height: 100vh;
}

.tab_title li {
    display: inline-block;
    line-height: 50px;
    height: 50px;
    width: 50%;
    float: left;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%;
    margin-top: 5px;
}

.tab_title li.lastest {
    background-image: url('../images/photos_title_lastest.jpg');
}

.tab_title li.lastestactive {
    background-image: url('../images/photos_title_lastest_focus.png');
}

.tab_title li.hot {
    background-image: url('../images/photos_title_hot.jpg');
}

.tab_title li.hotactive {
    background-image: url('../images/photos_title_hot_focus.png');
}

.tab_content {
    color: white;
    font-size: 1rem;
    line-height: 1.2rem;
    background: url('../images/photos_title_line.png') top 43px left no-repeat;
    background-size: 100%;
}


/*注册页*/
.form_title {
    text-align: center;
    height: 50px;
    line-height: 50px;
    color: #77b34f;
}

.form_line, .form_area {
    margin: 0 auto;
    width: 95%;
    padding: 10px 0;
}

.form_area {
    background-color: #ffffff;
    border-radius: 3px;
    width: 91%;
    padding-left: 2%;
    padding-right: 2%;
}

.form_input {
    color: gray;
    border: none;
    height: 45px;
    line-height: 45px;
    border-radius: 3px;
}

.input_text {
    width: 96%;
    padding: 0 2%;
}

.input_select {
    width: 100%;
    padding: 0;
}

.button {
    display: block;
    width: 100%;
    height: 45px;
    border: none;
    border-radius: 3px;
    color: #77b34f;
    background-color: #ffffff;
    margin-bottom: 5px;
    font-size: 16px;
}

.primary-button {
    background-color: #77b34f;
    color: #ffffff;
}

.tip-error {
    color: #fc0404;
    font-size: 12px;
}

/*我的照片列表*/
ul#myPhotosList {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}

    ul#myPhotosList li {
        width: 80px;
        height: 80px;
        border: dashed 1px #a7a7a7;
        color: #a7a7a7;
        line-height: 80px;
        text-align: center;
        margin-top: 10px;
        background-size: cover;
        background-position: center;
    }

        ul#myPhotosList li.empty {
            width: 82px;
            height: 82px;
            height: 0;
            border: none;
            margin-top: 0;
            margin-bottom: 0;
            visibility: hidden;
        }

/*上传照片页*/
#photoCover {
    width: 60px;
    height: 60px;
    margin: 10px auto;
    border: dashed 1px #a7a7a7;
    line-height: 60px;
    text-align: center;
    color: #a7a7a7;
    font-size: 30px;
    background-size: cover;
    background-position: center;
}

#txtComment {
    height: 100px;
    line-height: 22px;
    font-family: "微软雅黑";
}

/*瀑布流布局*/
.waterfall {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    width: 96%;
    margin: 0 auto;
}

.item {
    margin-top: 10px;
    width: 48%;
}

.item-content {
    width: 97%;
    height: 115px;
    padding: 1.5%;
    background-color: #fff;
}

.item-cover {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.item-bar {
    width: 100%;
    background-color: rgba(255,255,255,1.0);
    height: 36px;
    line-height: 36px;
    color: #77b34f;
}

    .item-bar span {
        display: inline-block;
        float: left;
        font-size: 16px;
    }

    .item-bar .thumbup_total {
        padding-left: 5%;
        width: 60%;
        border-top: 1px solid #e1e1e1;
    }

    .item-bar .thumbup_btn {
        text-align: center;
        float: right;
        width: 35%;
        color: white;
        background: #77b34f url('../images/photos_like_2.png') no-repeat;
        background-position: -5px center;
        background-size: 80%;
    }


.more, .no_more {
    width: 50%;
    display: inline-block;
    text-align: center;
    color: #a7a7a7;
    font-size: 14px;
    height: 28px;
    line-height: 28px;
    border: solid 1px #a7a7a7;
    border-radius: 14px;
    margin: 11px 0px;
}

#main_search{
    padding-bottom: 70px;
}

#modalContainer {
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 998;
    background-color: #000000;
    opacity: 0.75;
    top: 0px;
    left: 0px;
}

.modal {
    width: 100%;
    height: 100%;
    z-index: 999;
    position: fixed;
    top: 0px;
    left: 0px;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
}

.modal .close {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
    z-index: 1000;
}

.modal .card {
    width: 90%;
    height: 85%;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 3px solid #77b34f;
    background-color: #77b34f;
}

.card .photo {
    object-fit: contain;
    width: 90vw;
    height: 100%;
    /*max-height: 75%;*/
    max-height: calc(100% - 150px);
    background-color: #ffffff;
    padding-top: 5px;
    padding-bottom: 5px;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}

.card .no_title {
    max-height: calc(100% - 100px);
}

.card .comment, .card .number, .card .bar {
    font-size: 16px;
    line-height: 50px;
    min-height: 50px;
    color: #ffffff;
}

.card .comment {
    overflow: scroll;
    line-height: 150%;
}

.card .comment p::before {
	content: open-quote;
	font-size: 30px;
	position: relative;
	top: 13px;
}

.card .comment p:after {
    content: close-quote;
    font-size: 30px;
	position: relative;
	top: 13px;
}

.card .number {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    line-height: 40px;
    min-height: 40px;
    color: #77b34f;
    background-color: #ffffff;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
}

.card .quot {
    font-size: 30px;
    font-family: Arial;
}

.card .bar {
    text-align: center;
}

.card .bar .btn {
    border-radius: 3px;
    line-height: 30px;
    height: 30px;
    color: #ffffff;
    display: inline-block;
    width: 80px;
    text-align: center;
    border: 1px solid #ffffff;
}

.total_pulse{
    -webkit-animation-name: pulse;
    animation-duration: 500ms;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.hidden {
    display: none;
}

@media only screen and (min-width: 768px) {
    #main_index {
        background-size: 70% auto;
    }
}

@media screen and (max-width: 375px) {
    .nav_item {
        width: 70px;
    }

    .middle_nav_item {
        width: calc(100% - 280px);
    }

    ul#myPhotosList li {
        width: 75px;
        height: 75px;
        line-height: 75px;
    }

        ul#myPhotosList li.empty {
            width: 77px;
            height: 77px;
        }

    /*.item-content {
        width: 160px;
        height: 103px;
    }*/

    .card .photo {
        /*max-height: 70%;*/
    }
}

@media screen and (max-width: 320px) {
    #main_index {
        background-size: 80% auto;
    }

    .nav_item {
        width: 60px;
    }

    .middle_nav_item {
        width: calc(100% - 240px);
    }

    /*.item-content {
        width: 140px;
        height: 90px;
    }*/

    .item-bar {
        height: 30px;
        line-height: 30px;
    }

    .item-bar span {
        font-size: 14px
    }

    .tab_title li {
        line-height: 1.8rem;
        height: 1.8rem;
        font-size: 0.75rem;
    }

    .tab_content {
        background-position-y: 30px; 
    }

    ul#myPhotosList li {
        width: 65px;
        height: 65px;
        line-height: 65px;
    }

        ul#myPhotosList li.empty {
            width: 67px;
            height: 67px;
        }

    #photoCover {
        width: 60px;
        height: 60px;
        line-height: 60px;
        margin: 5px auto;
    }

    #txtComment {
        height: 70px;
    }

    .more, .no_more {
        height: 24px;
        line-height: 24px;
        font-size: 12px;
        border-radius: 12px;
    }

    .button {
        font-size: 14px;
    }

    .card .number, .card .comment {
        font-size: 14px;
    }

    .card .bar .btn {
        font-size: 14px;
    }
}
